package cn.com.pet.common.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.pet.common.dao.PetTypeMapper;
import cn.com.pet.common.entity.PetType;
import cn.com.pet.common.service.PetTypeService;


@Service("petTypeService")
public class PetTypeServiceImpl implements PetTypeService {

	@Autowired
	PetTypeMapper petTypeMapper;

	@Override
	public List<PetType> getAllFirstPetType(PetType pt) {
		return petTypeMapper.getAllFirstPetType(pt);
	}

	@Override
	public List<PetType> getAPetTypeByParentId(PetType pt) {
		return petTypeMapper.getAPetTypeByParentId(pt);
	}

	@Override
	public int addPetType(PetType pt) {
		return petTypeMapper.addPetType(pt);
	}

	@Override
	public int deletePetType(PetType pt) {
		return petTypeMapper.deletePetType(pt);
	}

	@Override
	public int updatePetType(PetType pt) {
		return petTypeMapper.updatePetType(pt);
	}

	@Override
	public List<PetType> findAllPetType(Map<String, String> parameter) {
		return petTypeMapper.findAllPetType(parameter);
	}

	@Override
	public PetType findPetTypeById(PetType pt) {
		return petTypeMapper.findPetTypeById(pt);
	}

}
